/**
 * \file Global.java
 * \author Nicolaj Quottrup
 */
package com.rootbat.fleamarketapp.authorization;

import org.apache.http.impl.client.DefaultHttpClient;

/**
* \brief Singleton class to handle http session over app lifetime.
*/
public class Global {
    private static Global mInstance= null;
    
    // Http connection which holds session over app lifetime
    public DefaultHttpClient InternetConnection = new DefaultHttpClient();
    // Variables to hold login info for auto login
    public String Password = null;
    public String Email = null;
    
    protected Global() {
    	
    	
    }

    /// <summary>
    /// getInstance - Gets Global singleton
    /// </summary>
    public static synchronized Global getInstance(){
    	if(null == mInstance){
    		mInstance = new Global();
    	}
    	return mInstance;
    }
}
